<template>
  <div>
    <p>{{value}}</p>
    <button @click="$emit('input',value+1)">+1</button>
    <button @click="$emit('input',value+1)">+2</button>
  </div>
</template>

<script>
export default {
  props:{
    value:{
        type:Number
    }
  },
  data () {
    return {

    }
  },

  created () {

  },

  methods: {

  }
}
</script>

<style scoped lang='less'>

</style>
